package com.platformer;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.platformer.screens.GamePlayScreen;
import com.platformer.screens.MainMenuScreen;


public class PlatformerGame extends Game {
	
	// constant useful for logging
	public static final String LOG = PlatformerGame.class.getSimpleName();
	
	public MainMenuScreen mainMenuScreen;
	public GamePlayScreen gamePlayScreen;
	
	
	@Override
	public void create() {		
		Gdx.app.log(LOG, "creating the game");
		
		mainMenuScreen = new MainMenuScreen(this);
		gamePlayScreen = new GamePlayScreen(this);
		
		setScreen(gamePlayScreen);
		
//		setScreen(new Box2DTest(this));
	}

	@Override
	public void dispose() {
		Gdx.app.log(LOG, "disposing the game");
	}

	@Override
	public void render() {
		super.render();
	}

	@Override
	public void resize(int width, int height) {
		Gdx.app.log(LOG, "resizing the game to " + width + "x" + height);
	}

	@Override
	public void pause() {
		Gdx.app.log(LOG, "pausing the game");
	}

	@Override
	public void resume() {
		Gdx.app.log(LOG, "resuming the game");
	}
}
